package com.jlkf.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.jlkf.service.CarCaculationService;

@Controller
@RequestMapping("carCaculation")
public class CarCaculationController {

	
	@Autowired
	private CarCaculationService carCaculationService;
	
	@RequestMapping("getList")
	public Object getList(Integer pageNo,Integer pageSize){
		return carCaculationService.getList(pageNo, pageSize);
	}
	
	@RequestMapping("addOrUpdate")
	@ResponseBody
	public Object addOrUpdate(@RequestBody String json){
		return carCaculationService.addOrUpdate(json);
	}
	@RequestMapping("changeStatus")
	@ResponseBody
	public Object changeStatus(@RequestBody String json){
		return carCaculationService.changeStatus(json);
	}
	
	
	@RequestMapping("del")
	public  Object del(String ids){
		return carCaculationService.del(ids);
	}
	
}
